package com.zhuang.chapter05;

import com.zhuang.chapter05.work02.Employee;
import com.zhuang.chapter05.work02.Manager;
import com.zhuang.chapter05.work02.Student;
import com.zhuang.chapter05.work02.Undergraduate;

public class Main {

	public static void main(String[] args) {
		Student student = new Student(15, "张三");
		student.show();
		Undergraduate undergraduate = new Undergraduate(18, "康小庄", "本科");
		undergraduate.show();

		System.out.println("----------------------");
		Employee employee = new Employee();
		employee.setId(1);
		employee.setName("王五");
		employee.setSalary(30000.0);
		employee.show();

		System.out.println("----------------------");
		Manager manager = new Manager();
		manager.setId(2);
		manager.setName("李四");
		manager.setJob("经理");
		manager.setSalary(30000.0);
		manager.show();
	}

}
